package com.xbongbong.pro.statistic.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 分组排序
 *
 * @author zcp
 * @date 2019/1/10
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class ChartCategorySortDTO extends BaseDTO {

    private static final long serialVersionUID = -7206173862298002209L;
    /**
     * 排序数组，内部key参考ChartCategorySortInfoDTO
     * 格式：[{"id": 22,"parentId": 0,"sort": 10,"childList": [{"id": 1,"parentId": 22,"sort": 5},{"id": 1,"parentId": 22,"sort": 4}]}]
     */
    @NotEmpty(message = "{dto.msg.chartCategorySort.sortInfo.NotEmpty}")
    @Valid
    private List<ChartCategorySortInfoDTO> sortInfo;
}
